package com.easylinkin.sm.service;

import com.easylinkin.core.tree.TreeSelect;
import com.easylinkin.sm.entity.Privilege;

import java.util.Collection;
import java.util.List;
import site.morn.boot.data.CrudService;

/**
 * 菜单权限服务
 *
 * @author tulinli
 * @since 0.1.1, 2019/4/19
 */
public interface PrivilegeService extends CrudService<Privilege, Long> {

  List<TreeSelect> searchPrivilegeTree(Integer disabled);

  /**
   * 获取当前登录用户的权限列表数据
   * @return
   */
  Collection<Privilege> getCurrent();
}
